package com.bdqn.t350.ch11.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bdqn.t350.ch11.bean.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {


    //自定义条件查询
    // select * from sys_role  order by
    List<Role> selectList(IPage<Role> page, @Param("role") Role role);


    List<Role> selectByRoleId(@Param("role") Role role);

    List<String> getRightByRoleId(Integer roleId);
}
